# 启动celery的worker
# celery -A myapi.celery_app:app worker --loglevel=info
import subprocess
import os

if __name__ == '__main__':
    print(os.getpid())
    subprocess.check_call("celery   -A ppp_api.celery_app:app worker --loglevel=info", shell=True)
